package com.zhl.media.commonsdk.base;


import java.io.Serializable;

/**
 * des:封装服务器返回数据
 * Created by xsf
 * on 2016.09.9:47
 */
public class BaseRespose<T> implements Serializable {
    public int code;
    public String message;
    public T data;
    public String level;

    public boolean success() {
        return code == 0;
    }

    @Override
    public String toString() {
        return "BaseRespose{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                ", level='" + level + '\'' +
                '}';
    }
}

